Skip to content

chore(repo-root): remove 28 tab-completion prefix symlinks that could trigger a full rebuild - #13041

Open
dezren39 wants to merge 1 commit into
mainfrom
xaltha/12668-symlink-rebuilds
Open

dezren39 wants to merge 1 commit into
mainfrom
xaltha/12668-symlink-rebuilds

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Closes #12668

Remedy chosen

The issue's fix shape, with its narrower guard option: delete the unreferenced stubs + a note in the root README (instead of a new guard script/check). All three steps of the suggested shape are covered:

  1. Reference check (git grep over the whole tree): every prefix stub was grepped for invocation references (./<name> at a word boundary) and alias definitions. The 28 deleted names have zero invocation references; the only alias-shaped hits for single letters are ordinary shell variables (f="$CALLER_DIR/$f", awk's n, …), and the ./a hits are URI-scheme docs and test fixtures.
  2. Deletions (28): a au aut f fu ful r re reb rebu rebui rebuil (→ auth-rebuild-full), o of off offl offli offlin (→ auth-rebuild-offline), si sim simp simpl (→ auth-rebuild-simple), n nv nvi v vi (→ nvim), ss (→ auth-rebuild-simple-script). Root symlinks: 75 → 47.
  3. Guard: new "Root symlinks" section in README.md recording the entry points and requiring a stated reason for any new root symlink. CLAUDE.md's symlink example list updated to surviving aliases (it named n and v).

Kept, deliberately

  • Documented entry points: rebuild, rebuild-simple, rebuild-offline (CLAUDE.md), full, offline, simple, nvim, script (named in lib/rebuild-log.sh), plus the full-word aliases (auth, full-rebuild, vim, format-nix, the .sh variants, …).
  • ./s — it looks like a stub but is load-bearing: the switch recipe in root.just runs ./s, and the generated just-recipes.json snapshots carry it. Deleting it would break just switch.
  • All structural links (src, packages, id, docs, rust-toolchain.toml, …) — outside the issue's stub scope.

Verification (before/after, static — the stubs were not executed; executing one is the hazard)

  • Before: ./a → ./lib/auth-rebuild-full.sh, whose body is ./lib/auth.sh ./lib/rebuild-full.sh — the full rebuild path, confirmed at HEAD.
  • After: all 28 deleted paths absent; every kept entry point still resolves to an existing target; root.just's switch target ./s intact; post-deletion whole-word grep for the distinctive deleted names (offlin, rebuil, simpl, nvi, …) finds only the README removal note itself.
  • No nix build is affected: the change deletes root symlinks and edits two docs; no flake, justfile command, or package input changes.

Branch based on the worktree's local origin/main (cb4c54ced); worktree code-12229 reused, preflight clean.


Run Proof on this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

… trigger a full rebuild

The root tracked 75 symlinks; 28 were pure tab-completion prefixes of the
lib/auth-rebuild-*.sh and lib/nvim.sh entry points (a, au, aut, f, fu, ful,
r, re, reb, rebu, rebui, rebuil, o, of, off, offl, offli, offlin, si, sim,
simp, simpl, n, nv, nvi, v, vi, ss). A mistyped one-letter command at the
root silently ran a full NixOS rebuild. git grep shows no invocation
reference to any of them; the alias-shaped hits are shell variables.

Kept: the documented entry points (rebuild, rebuild-simple, rebuild-offline,
full, offline, simple, nvim, script, auth, format-nix, ...) and ./s, which
the root.just switch recipe runs. Root symlinks: 75 -> 47.

Guard per the issue's narrower option: a 'Root symlinks' note in README.md
recording the entry points and requiring a stated reason for new root
symlinks; CLAUDE.md's example list updated to surviving aliases.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 22 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 790b0e69-15d0-4fb2-a369-724b441eed7d
Commits

Reviewing files that changed from the base of the PR and between 03e5d20 and 97cdeb0.

Files selected for processing: 30

  • CLAUDE.md
  • README.md
  • a
  • au
  • aut
  • f
  • fu
  • ful
  • n
  • nv
  • nvi
  • o
  • of
  • off
  • offl
  • offli
  • offlin
  • r
  • re
  • reb
  • rebu
  • rebui
  • rebuil
  • si
  • sim
  • simp
  • simpl
  • ss
  • v
  • vi
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T07:34:01.777823Z 97cdeb0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

repo root: 75 tracked symlinks, most are tab-completion stubs that run a full rebuild when typed

1 participant